.class Lde/dealdoktor/app/activities/Search$1;
.super Ljava/lang/Object;
.source "Search.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lde/dealdoktor/app/activities/Search;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lde/dealdoktor/app/activities/Search;


# direct methods
.method constructor <init>(Lde/dealdoktor/app/activities/Search;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lde/dealdoktor/app/activities/Search$1;->this$0:Lde/dealdoktor/app/activities/Search;

    .line 62
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 66
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    iget-object v1, p0, Lde/dealdoktor/app/activities/Search$1;->this$0:Lde/dealdoktor/app/activities/Search;

    iget-object v1, v1, Lde/dealdoktor/app/activities/Search;->listAdapter:Lde/dealdoktor/app/adapter/PostListAdapter;

    invoke-virtual {v1}, Lde/dealdoktor/app/adapter/PostListAdapter;->getCount()I

    move-result v1

    if-le v1, p3, :cond_0

    .line 67
    iget-object v1, p0, Lde/dealdoktor/app/activities/Search$1;->this$0:Lde/dealdoktor/app/activities/Search;

    iget-object v1, v1, Lde/dealdoktor/app/activities/Search;->listAdapter:Lde/dealdoktor/app/adapter/PostListAdapter;

    invoke-virtual {v1, p3}, Lde/dealdoktor/app/adapter/PostListAdapter;->getItem(I)Lde/dealdoktor/app/data/PostDAO;

    move-result-object v1

    sput-object v1, Lde/dealdoktor/app/App;->currentPost:Lde/dealdoktor/app/data/PostDAO;

    .line 68
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lde/dealdoktor/app/activities/Search$1;->this$0:Lde/dealdoktor/app/activities/Search;

    const-class v2, Lde/dealdoktor/app/activities/DetailsSearch;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 69
    .local v0, details:Landroid/content/Intent;
    iget-object v1, p0, Lde/dealdoktor/app/activities/Search$1;->this$0:Lde/dealdoktor/app/activities/Search;

    invoke-virtual {v1, v0}, Lde/dealdoktor/app/activities/Search;->startActivity(Landroid/content/Intent;)V

    .line 71
    .end local v0           #details:Landroid/content/Intent;
    :cond_0
    return-void
.end method
